﻿var loopTime = 4 ;// s

$(function(){
	tabs('#topLists','#topLists > h2 a','#topLists > div');	
	
});
/*

star('#star');
landscapeLoop("#showImages li");	

	tabs('#basicInfo','#basicInfo > h3 a','#basicInfo > ul');

//showBeauty('#showImages li a');
function showBeauty(obj){
	$(obj).beautyStyle({'align':'center','margin':'10px 0','type':'img'});
}

function landscapeLoop(obj){
	var $landscapeLi = $(obj);//$("#landscape li");
	var len  = $landscapeLi.length , index = 1;	
	$landscapeLi.eq(0).animate({opacity:'show'},1200);
	setInterval(function(){
		showImg( index , $landscapeLi );
		index++;
		if(index==len){index=0;}		
	},loopTime * 1000);
};

function showImg( iShow , obj ){
	obj.each(function(i){
		if( i!= iShow)
			$(this).animate({opacity:'hide'},1200);
		else
			$(this).animate({opacity:'show'},1200);
	});
};*/